package com.minelx.woods.pc.service.mapper;

import com.minelx.httpclient.core.Requests;
import com.minelx.httpclient.core.request.IResponse;
import com.minelx.sqlstructures.common.Files;
import com.minelx.statementsplus.common.Templates;

import java.util.HashMap;
import java.util.Map;

public class UserRequestMapper {
	public IResponse postUser(String user, String password) {
		Map<String, String> parameters = new HashMap<>();
		parameters.put("user", user);
		parameters.put("password", password);
		return Requests.parse(new Templates(Files.toString("/requests/post_user.request")).render(parameters)).fetch();
	}
}
